package common;

/**
 * created by lx on 2017/7/2.
 * 通用结果code
 */
public enum CommonCode {
    /**
     *  3 : 用户错误相关
     */
    SUCES(200,"is sucess"),
    ERROR(500,"系统错误"),
    USERERROR(301,"登录名或密码为空"),
    USERNOT(302,"用户不存在"),
    USERPWDERROR(303,"密码错误")
    ;

    private Integer code;

    private String mes;

    CommonCode(Integer code, String mes) {
        this.code = code;
        this.mes = mes;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMes() {
        return mes;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }
}
